<h2>Theme des éditions</h2>
<h4>Modèle <a class="btn btn-primary" href="#" onclick="$('#formAdd').show()">Ajouter</a></h4>

<form action="edition/create" method="post" id="add" class="form-horizontal" >
	<div id="formAdd"  class="hide">
	<div class="control-group">
		 <label class="control-label">Nom Technique </label>
		 <div class="controls">
			<input type="text" name="edition[setting_key]" value="" required="required"/>
		</div>
		 <label class="control-label" for="inputEmail">Edition </label> 
		<div class="controls">
			<textarea class="row-fluid"  rows="8" name="edition[setting]" id="content"></textarea>
		</div>
	</div>
		<div class="controls">
		 <input name="edition_submit" id="submit" class="btn btn-primary" value="Ajouter" type="submit">
		</div>
	</div>	
</form>


<h3>Listes Modèles pour Envoyer email,...</h3>

<?php foreach($editions as $edition):?>
<hr/>
<form action="edition/edit" method="post" class="form-horizontal">
	<div  class="control-group">
	
		<label class="control-label">Nom Technique </label>
		<div class="controls">
			<input type="text" name="edition[setting_key]" value="<?php echo $edition->setting_key?>" required="required"/>
		</div>
		<label class="control-label">Edition</label>
		<div class="controls">
		<textarea class="row-fluid"  rows="5" name="edition[setting]" id="content"><?php echo $edition->setting?></textarea><br/>
		</div>
	</div>
	<div class="controls">
	 <input name="edition_submit" id="submit" class="btn btn-success" value="Enregistrer les modifications" type="submit">
	 <input name="edition[id]" value="<?php echo $edition->id?>" type="hidden">
	</div>

</form>

<?php endforeach;?>




